#include<stdio.h>

int main() 
{
	char a[5] = { 1,2,3,4,5 };
	char b[5] = { 5,4,3,2,1 };

	int temp;
	for (int i = 0; i < 5; i++)
	{
		temp = a[i];
		a[i] = b[i];
		b[i] = temp;
	}

	for (int i = 0; i < 5; i++)printf("%d ", a[i]);
	printf("\n");
	for (int i = 0; i < 5; i++)printf("%d ", b[i]);

}